/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Header.java
 *
 * Created on Dec 15, 2011, 2:47:47 PM
 */
package Ui.guiComponents;

/**
 *
 * @author Elya
 */
public class Header extends javax.swing.JPanel {

    /** Creates new form Header */
    public Header() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        JMenu = new javax.swing.JMenuBar();
        File = new javax.swing.JMenu();
        JCustomData = new javax.swing.JMenuItem();
        JLoadData = new javax.swing.JMenuItem();
        JSaveData = new javax.swing.JMenuItem();
        JQuit = new javax.swing.JMenuItem();
        Edit = new javax.swing.JMenu();
        JUndo = new javax.swing.JMenuItem();
        JRedo = new javax.swing.JMenuItem();
        JLogo = new javax.swing.JLabel();

        JMenu.setMinimumSize(new java.awt.Dimension(800, 750));

        File.setText("File");

        JCustomData.setText("Create custom game settings");
        File.add(JCustomData);

        JLoadData.setText("Load game settings from existing file");
        JLoadData.setActionCommand("Load settings from existing file");
        JLoadData.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JLoadDataActionPerformed(evt);
            }
        });
        File.add(JLoadData);

        JSaveData.setText("Save current game settings");
        File.add(JSaveData);

        JQuit.setText("Quit Game");
        File.add(JQuit);

        JMenu.add(File);

        Edit.setText("Edit");

        JUndo.setText("Undo");
        JUndo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JUndoActionPerformed(evt);
            }
        });
        Edit.add(JUndo);

        JRedo.setText("Redo");
        Edit.add(JRedo);

        JMenu.add(Edit);

        setBackground(new java.awt.Color(83, 138, 219));
        setBorder(javax.swing.BorderFactory.createEtchedBorder());
        setLayout(new java.awt.BorderLayout());

        JLogo.setBackground(new java.awt.Color(0, 0, 0));
        JLogo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        JLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Ui/guiComponents/images/BattleshipLogo.jpg"))); // NOI18N
        JLogo.setToolTipText("Logo");
        add(JLogo, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

private void JLoadDataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JLoadDataActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_JLoadDataActionPerformed

private void JUndoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JUndoActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_JUndoActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu Edit;
    private javax.swing.JMenu File;
    private javax.swing.JMenuItem JCustomData;
    private javax.swing.JMenuItem JLoadData;
    private javax.swing.JLabel JLogo;
    private javax.swing.JMenuBar JMenu;
    private javax.swing.JMenuItem JQuit;
    private javax.swing.JMenuItem JRedo;
    private javax.swing.JMenuItem JSaveData;
    private javax.swing.JMenuItem JUndo;
    // End of variables declaration//GEN-END:variables
}
